package com.company.card_service.service;

import com.company.card_service.model.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.card_service.vo.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:07
 */
public interface MessageService extends IService<Message> {

    Boolean saveAll(Message message);

    //通过message的employee_id查询回复留言列表信息
    public Result getMessageById(int eid, int pageNum, int limit);

    //统计留言信息
    public Result getMessageCountById(int eid);

    //通过message的employee_id查询不公开留言列表信息
    public Result getNoPublicMessageVoById(int eid,int pageNum,int limit);

    //通过message的employee_id查询公开留言列表信息
    public Result getPublicMessageVoById(int eid,int pageNum,int limit);

    //通过message的employee_id查询待回复留言列表信息
    public Result getNoReplyMessageVoById(int eid,int pageNum,int limit);

    //通过message的employee_id查询已回复留言列表信息
    public  Result getReplyMessageVoById(int eid,int pageNum,int limit);

    void removeMessageById(Integer id);

//    删除留言
}
